package com.yilife.hmstr.domain;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

/**
 * 健康管理系统检测报告记录
 * @author dede
 *
 */
@SuppressWarnings("serial")
@TableName(value="hmstr_record")
public class HmstrRecord extends Model<HmstrRecord>{
	/**
	 * 主键
	 */
	@TableId(value="hmstr_id")
	private long hmstrId;
	
	/**
	 * 年龄
	 */
	private int age;
	
	/**
	 * 身高
	 */
	private String height;
	
	/**
	 * 体重
	 */
	private String weight;
	
	/**
	 * 体形
	 */
	private String size;
	
	/**
	 * 检测时间
	 */
	@TableField(value="detection_time")
	private String detectionTime;
	
	/**
	 * 用户id
	 */
	@TableField(value="user_id")
	private int userId;
	
	public HmstrRecord() {
		super();
	}
	
	public HmstrRecord(long hmstrId, int age, String height, String weight, String size, String detectionTime,
			int userId) {
		super();
		this.hmstrId = hmstrId;
		this.age = age;
		this.height = height;
		this.weight = weight;
		this.size = size;
		this.detectionTime = detectionTime;
		this.userId = userId;
	}

	public long getHmstrId() {
		return hmstrId;
	}

	public void setHmstrId(long hmstrId) {
		this.hmstrId = hmstrId;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public String getHeight() {
		return height;
	}

	public void setHeight(String height) {
		this.height = height;
	}

	public String getWeight() {
		return weight;
	}

	public void setWeight(String weight) {
		this.weight = weight;
	}

	public String getSize() {
		return size;
	}

	public void setSize(String size) {
		this.size = size;
	}

	public String getDetectionTime() {
		return detectionTime;
	}

	public void setDetectionTime(String detectionTime) {
		this.detectionTime = detectionTime;
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	@Override
	public String toString() {
		return "HmstrRecord [hmstrId=" + hmstrId + ", age=" + age + ", height=" + height + ", weight=" + weight
				+ ", size=" + size + ", detectionTime=" + detectionTime + ", userId=" + userId + "]";
	}

	@Override
	protected Serializable pkVal() {
		// TODO Auto-generated method stub
		return hmstrId;
	}

}
